package com.ruoyi.business.domain;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;

/**
 * 课程信息对象 T_COURSE_INFO
 * 
 * @author 最爱喝兽奶
 * @date 2022-07-16
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel("课程信息对象")
@TableName("T_COURSE_INFO")
public class CourseInfo implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 课程ID */
    @TableId(type = IdType.AUTO)
    private String id;

    /** 课程名称 */
    @TableField(value = "course_name", jdbcType = JdbcType.VARCHAR)
    private String courseName;

    /** 课程所属系列，关联course_series的id */
    @TableField(value = "course_series", jdbcType = JdbcType.VARCHAR)
    private Long courseSeries;

    /** 课程简介 */
    @TableField(value = "course_detail", jdbcType = JdbcType.VARCHAR)
    private String courseDetail;

    /** 上传教师 */
//    @Excel(name = "上传教师")
    @TableField(value = "upload_teacher", jdbcType = JdbcType.VARCHAR)
    private String uploadTeacher;

    /** 上传时间 */
//    @Excel(name = "上传时间")
    @TableField(value = "upload_time", jdbcType = JdbcType.VARCHAR)
    private Date uploadTime;

    /** 课程的封面 */
//    @Excel(name = "课程的封面")
    @TableField(value = "course_image", jdbcType = JdbcType.VARCHAR)
    private String courseImage;

    /** 所属学院id */
//    @Excel(name = "所属学院id")
    @TableField(value = "college_id", jdbcType = JdbcType.VARCHAR)
    private Integer collegeId;

    /** 所属学院名称 */
//    @Excel(name = "所属学院名称")
    @TableField(value = "college_name", jdbcType = JdbcType.VARCHAR)
    private String collegeName;

    /** 课程状态: 0-进行中， 1-已完结 */
//    @Excel(name = "课程状态: 0-进行中， 1-已完结")
    @TableField(value = "status", jdbcType = JdbcType.VARCHAR)
    private String status;

    /** 课程开始时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "课程开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "start_time", jdbcType = JdbcType.DATE)
    private Date startTime;

    /** 课程结束时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "课程结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "end_time", jdbcType = JdbcType.DATE)
    private Date endTime;

}
